﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using oLGame.Game.World;

namespace oLGame.Game
{
    class Entity
    {
        public static UInt64 entityCount = 0;
        private UInt64 id = 0;

        protected Room currentRoom = new Room();
        protected String name = "unknown";

        public Entity()
        {
            EntityID = entityCount++;
        }

        public String Name
        {
            get { return name; }
            set { name = value; }
        }

        public Room CurrentRoom
        {
            get
            {
                return currentRoom;
            }
            set
            {
                currentRoom.RemoveEntityFromRoom(this);
                value.AddEntityToRoom(this);
                currentRoom = value;
            }
        }

        public UInt64 EntityID
        {
            get
            {
                return id;
            }
            set
            {
                id = value;
            }
        }
    }
}
